package com.chaoyong.higo.adapter;

import com.chaoyong.higo.R;
import com.chaoyong.higo.base.BaseAdapter;
import com.chaoyong.higo.utils.ViewHolder;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RadioButton;

/**
 * 充值金额选项
 * @author Administrator
 *
 */
public class RecargeAdapter extends BaseAdapter<Object> {

	private String[] amounts = { "50", "100", "200", "500" };
	private RadioButton recarge_select;

	public RecargeAdapter(Context context) {
		super(context);
	}

	@Override
	public int getCount() {
		return amounts.length;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		if (convertView == null) {
			convertView = mInflater.inflate(R.layout.item_recarge_adp, null);
		}

		recarge_select = ViewHolder.get(convertView, R.id.btn_0);
		recarge_select.setText(amounts[position]);

		return convertView;
	}

}
